package com.example.login.securitylogin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;

//相当于 @Configuration  @EnableAutoConfiguration  @ComponentScan
@SpringBootApplication
@EnableAutoConfiguration(exclude = {SecurityAutoConfiguration.class})
public class SecurityloginApplication extends SpringBootServletInitializer
{

	@Override// 使用jsp所必须
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder)
		{
			return builder.sources(SecurityloginApplication.class);
		}

	public static void main(String[] args)
		{
			SpringApplication.run(SecurityloginApplication.class, args);
		}
}
